package com.tbit.uqbike.object.pojo.dto;

import com.alibaba.fastjson.annotation.JSONField;
import com.tbit.common.group.DefaultGroupA;
import com.tbit.common.group.DefaultGroupB;
import com.tbit.common.group.DeleteGroup;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * 扣押区车辆绑定
 *
 */
@Data
public class DetentionMachineBoundDTO {
    /**
     * 区域id
     */
    @NotNull(groups = {DeleteGroup.class, DefaultGroupA.class, DefaultGroupB.class})
    private Integer accountId;
    /**
     * 扣押区id
     */
    @NotNull(groups = {DeleteGroup.class, DefaultGroupA.class, DefaultGroupB.class})
    private Integer detentionId;
    /**
     * 车辆id
     */
    @NotNull(groups = {DeleteGroup.class})
    private Integer machineId;
    /**
     * 车辆编号集合
     */
    @NotNull(groups = {DefaultGroupA.class, DefaultGroupB.class})
    private List<String> userCodeList;
    /**
     * 扣押时间
     */
    @NotNull(groups = {DefaultGroupA.class})
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date addTime;
}
